<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户信息网</title>
</head>
<link href="js/layui/css/layui.css" rel="stylesheet" type="text/css"/>
<script src="js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/layui/layui.all.js" type="text/javascript" charset="utf-8"></script>
<script src="js/loginjs/cunchu.js"></script>
<script src="js/index.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="js/layui/css/style.css"/>

<body>
    <label class="layui-form-label">名字：</label>
    <div class="layui-input-block">
        <input style="width: 200px;float: left;margin-top: 3px;"  type="text" id="userNickname" name="user_nickname"
               placeholder="请输入查询"
               class="layui-input">
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;生日区间：
        <div class="layui-inline"> <!-- 注意：这一层元素并不是必须的 -->
            <input type="text" style="width: 120px;" autocomplete="off" class="layui-input" id="test1"/>
        </div>
        ~
        <div class="layui-inline"> <!-- 注意：这一层元素并不是必须的 -->
            <input type="text" style="width: 120px;" autocomplete="off" class="layui-input" id="test2"/>
        </div>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注册区间：
        <div class="layui-inline"> <!-- 注意：这一层元素并不是必须的 -->
            <input type="text" style="width: 120px;" autocomplete="off" class="layui-input" id="test3"/>
        </div>
        ~
        <div class="layui-inline"> <!-- 注意：这一层元素并不是必须的 -->
            <input type="text" style="width: 120px;" autocomplete="off" class="layui-input" id="test4"/>
        </div>
        <br>
        <span style="margin-left: 8px;">用户状态：</span>
        <select style="height: 36px;width: 75px;margin-top: 3px" id="zhuangtai">
            <option style="font-size: 16px;" value="">请选择</option>
            <option style="font-size: 16px;" value="0">正常</option>
            <option style="font-size: 16px;" value="1">禁用</option>
        </select>
        <input class="layui-btn layui-btn-mini " style="width: 70px;height: 36px;margin-left: 15px;float: right;" onclick="searchUsers()"
               value="搜索"/>
    </div>


<table id="demo" lay-filter="test"></table>

<!-- 表格内部自定义模板 -->
<script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-mini  layui-btn-xs" lay-event="edit">编辑</a>
    {{#  if(d.user_enabled == 0){ }}
    <a class="layui-btn layui-btn-mini  layui-btn-xs layui-btn-danger" lay-event="forbidden">禁用</a>
    {{#  } else { }}
    <a class="layui-btn layui-btn-mini  layui-btn-xs" lay-event="startUsing">启用</a>
    {{#  } }}


</script>
<div id="popUpdateTest" style="display:none;text-align:center;">
    <div style="float: left;">
        <h2>送给此刻奋斗的</h2>
        <h1>-------你-------</h1>
        <div id="demo2" style="width:520px; height:500px;">
            <canvas id="c" height="500" width="500"></canvas>
        </div>
    </div>
    <div>
        <form class="layui-form layui-from-pane" lay-filter="formTest"
              style="width: 600px;float: left;;margin-top:20px;text-align:center;">
            <div class="layui-input-inline">
                <input style="width: 200px;" type="text" id="user_id" name="user_id" placeholder="请输入用户编号"
                       class="layui-input">
            </div>
            <div class="layui-input-inline" style="padding-left: 60px;">
                <input style="width: 200px;" type="text" id="user_username" name="user_username" placeholder="请输入用户姓名"
                       class="layui-input">
            </div>
            <p></p>

            <div class="layui-input-inline" style="margin-top: 10px;">
                <input style="width: 200px;" type="text" id="user_nickname" name="user_nickname" placeholder="请输入用户网名"
                       class="layui-input">
            </div>
            <div class="layui-input-inline" style="padding-left: 60px;margin-top: 15px;">
                <input style="width: 200px;" type="text" id="user_password" name="user_password" placeholder="请输入用户密码"
                       class="layui-input">
            </div>
            <p></p>

            <div class="layui-input-inline" style="margin-top: 10px;">
                <input style="width: 200px;" type="text" id="user_sex" name="user_sex" placeholder="请输入用户性别"
                       class="layui-input">
            </div>
            <div class="layui-input-inline" style="padding-left: 60px;margin-top: 10px;">
                <input style="width: 200px;" type="text" id="user_userBirthday" name="user_userBirthday"
                       placeholder="请输入用户生日"
                       class="layui-input">
            </div>
            <p></p>

            <div class="layui-input-inline" style="margin-top: 10px;">
                <input style="width: 200px;" type="text" id="user_registerData" name="user_registerData"
                       placeholder="请输入用户注册日期"
                       class="layui-input">
            </div>
            <div class="layui-input-inline" style="padding-left: 60px;margin-top: 10px;">
                <input style="width: 200px;" type="text" id="user_phoneNumber" name="user_phoneNumber"
                       placeholder="请输入用户手机号"
                       class="layui-input">
            </div>
            <p></p>

            <div class="layui-input-inline" style="margin-top: 10px;">
                <input style="width: 200px;" type="text" id="user_qq" name="user_qq" placeholder="请输入用户QQ"
                       class="layui-input">
            </div>
            <div class="layui-input-inline" style="padding-left: 60px;margin-top: 10px;">
                <input style="width: 200px;" type="text" id="user_weixin" name="user_weixin" placeholder="请输入用户微信"
                       class="layui-input">
            </div>
            <p></p>

            <div class="layui-input-inline" style="margin-top: 10px;">
                <input style="width: 200px;" type="text" id="user_enabled" name="user_enabled" placeholder="请输入用户状态"
                       class="layui-input">
            </div>
            <div class="layui-input-inline" style="padding-left: 60px;margin-top: 10px;">
                <input style="width: 200px;" type="text" id="user_email" name="user_email" placeholder="请输入用户邮箱"
                       class="layui-input">
            </div>
            <p></p>

            <div class="layui-input-inline" style="margin-top: 10px;">
                <input style="width: 200px;" type="text" id="user_userface" name="user_userface" placeholder="请输入用户头像"
                       class="layui-input">
            </div>
            <div class="layui-input-inline" style="padding-left: 60px;margin-top: 10px;">
                <input style="width: 200px;" type="text" id="user_score" name="user_score" placeholder="请输入用户积分"
                       class="layui-input">
            </div>
            <p></p>

            <div class="layui-input-inline" style="margin-top: 15px;width: 460px;">
                <select name="buildId" id="buildId" lay-filter="buildingFilter" lay-search="">
                    <option value=""></option>
                </select>
            </div>
            <p></p>
            <div class="layui-input-inline" style="margin-top: 10px;">
                <textarea name="user_signature" style="width: 460px;height: 38px" id="user_signature"
                          placeholder="请输入用户签名" class="layui-textarea"></textarea>
            </div>

        </form>
        <button class="layui-btn" style="width: 250px;height: 32px;margin-top: 12px;" onclick="setFormValue()">确认修改
        </button>
    </div>
</div>
<div>

</div>
</div>

<script type="text/html" id="titleTpl">
    {{#  if(d.user_enabled == 0){ }}
    正常
    {{#  } else { }}
    禁用
    {{#  } }}
</script>
<script src="js/meiguihua.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>
